package strategy;

import java.util.Comparator;

/**
 * 房间面积排序策略
 */
public class HomeAreaSortStrategy implements Comparator<Home> {
    @Override
    public int compare(Home o1, Home o2) {
        return Double.compare(o1.getArea(), o2.getArea());
    }
}
